import 'package:flutter/material.dart';
import 'package:flutter_deer/account/models/agent_user_betting_entity.dart';
import 'package:flutter_deer/widgets/state_layout.dart';

class AgentUserBettingSummaryPageProvider extends ChangeNotifier {

  AgentUserBettingSummaryPoolEntity? _poolEntity;
  List<AgentUserBettingSummaryEntity>? _list;
  StateType? _stateType = StateType.loading;

  AgentUserBettingSummaryPoolEntity? get poolEntity => _poolEntity;
  StateType? get stateType => _stateType;
  List<AgentUserBettingSummaryEntity>? get list => _list;

  void setSummaryData(AgentUserBettingSummaryPoolEntity? entity) {
    _poolEntity = entity;
    _list = entity?.list;
    _stateType = StateType.empty;
    notifyListeners();
  }
}